package com.googlecode.garbagecan.cxfstudy.jaxrs;

import java.util.Calendar;

public class CustomerServiceImpl implements CustomerService {

	@Override
	public Customer findCustomerById(String id) {
		Customer customer = new Customer();
		customer.setId(id);
		customer.setName(id);
		customer.setBirthday(Calendar.getInstance().getTime());
		return customer;
	}
	
	@Override
	public String getCustomerNameById(String id) {
		return "name_for_" + id;
	}
	
	@Override
	public Customer findCustomerByName(String name) {
		Customer customer = new Customer();
		customer.setId(name);
		customer.setName(name);
		customer.setBirthday(Calendar.getInstance().getTime());
		return customer;
	}
	
}
